Skip to content

Ignore 404 NOT FOUND when trying to delete a tag#201

Open
spkane wants to merge 1 commit intodocker:mainfrom
superorbital:sean/rm-tag-ignore-404
Open

Ignore 404 NOT FOUND when trying to delete a tag#201
spkane wants to merge 1 commit intodocker:mainfrom
superorbital:sean/rm-tag-ignore-404

Conversation

@spkane
Copy link

@spkane spkane commented Jan 6, 2022

Signed-off-by: Sean P. Kane sean@superorbital.io

- What I did

Added code to log, but otherwise ignore 404 NOT FOUND errors when deleting tags.

This addresses some additional functionality that was mentioned in:
#58

- How I did it

Via a few lines of Go code

- How to verify it

Try and run a command like this twice against an existing image tag (or just run it against something that does not exist).

hub-tool tag rm -f myrepo/myimage:mytag
hub-tool tag rm -f myrepo/myimage:mytag

- Description for the changelog

  • Do not throw fatal errors when trying to delete a non-existent image tag.

Signed-off-by: Sean P. Kane <sean@superorbital.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant